package com.eshop.service.impl;

import com.eshop.commons.ParentService;
import com.eshop.entity.User;
import com.eshop.service.UserService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class UserServiceImpl extends ParentService implements UserService  {
    @Override
    public List<User> findAllUser() {
        return userMapper.getAllUser();
    }

    @Override
    public User getUserByName(String userName) {
        return userMapper.getUserByName(userName);
    }
}
